<?php
class CostumeinfoList extends AppModel
{
    public $name = ' CostumeInfoList';
    public $useTable = 'costume_info_lists';
    public $useDbConfig = 'fantasy_hero_kr_game';
    public $primaryKey = '_id';

    public function getAllId()
    {
        $params = array(
            'conditions' => array(
                'Id' => array(
                    '$nin' => array('')
                )
            ),
            'fields' => array('Id', 'Name')
        );

        $data = $this->find('all', $params);
        return $data;
    }
}